/**Class represents a student who is already enrolled in university
 * 
 * @author Kurt Micheli
 * @autor Gabriel Rauter
 * @autor Maximilian Mulatz
 */
public class Student {

	private String matnr = "";
	private String name = ""; // vorname
	private String surname = ""; // nachname

	/**Generates a new Student- Object
         * 
         * @param matnr The individual number of every Student
         * @param name  The first name of the Student   
         * @param surname The last name of the Student
         */
        public Student(String matnr, String name, String surname) {
		this.matnr = matnr;
		this.name = name;
		this.surname = surname;
	}

	/**Returns the individual number of the Student.
         * 
         * @return  The individual number of the specified Student.
         */
        public String getMatnr() {
		return this.matnr;
	}

        /**Returns a String-representation of the Student's  first name.
         * 
         * @return  A String-representation of the specified Student's first name.
         */
	public String getName() {
		return this.name;
	}

        /**Returns a String-representation of the Student's last name.
         * 
         * @return  A String-representation of the specified Student's last name. 
         */
	public String getSurName() {
		return this.surname;
	}

	/**Returns all basic information about the Student in the format "Matrikelnummer" "first name" "surname"
         * 
         * @return  A String-representation of the specified Student's basic information Matrikelnummer, fist name and last name.
         */
        public String toString() {
		return this.getMatnr() + " " + this.getName() + " " + this.getSurName();
	}
}
